import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import router from './router'
// 1. 引入你需要的组件
import { Button } from 'vant';
//动作栏
import { ActionBar, ActionBarIcon, ActionBarButton } from 'vant';
//卡片
import { Card } from 'vant';
//加载
import { Loading } from 'vant';
//轻提示
import { Toast } from 'vant'
//表单
import { Form, Field, CellGroup } from 'vant';
//分类选择器
import { TreeSelect } from 'vant';
//弹窗
import { Dialog } from 'vant';
//单选框
import { RadioGroup, Radio } from 'vant';
//徽章
import { Badge } from 'vant';
//动作面板
import { ActionSheet } from 'vant';
//空状态
import { Empty } from 'vant';
//地址列表
import { AddressList } from 'vant';
//导航栏
import { NavBar } from 'vant';
//选择器
import { Picker } from 'vant';
//密码框
import { PasswordInput, NumberKeyboard } from 'vant';
//图标
import { Icon } from 'vant';
//倒计时
import { CountDown } from 'vant';









// 2. 引入组件样式
import 'vant/lib/index.css';
const app = createApp(App);
//引入pinia持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
//vant组件
app.use(Button);
//动作栏
app.use(ActionBar);
app.use(ActionBarIcon);
app.use(ActionBarButton)
//卡片
app.use(Card);
//加载
app.use(Loading);
//轻提示
app.use(Toast);
//表单
app.use(Form);
app.use(Field);
app.use(CellGroup);
//分类选择器
app.use(TreeSelect);
//弹窗
app.use(Dialog);
//单选框
app.use(Radio);
app.use(RadioGroup);
//徽章
app.use(Badge);
//动作面板
app.use(ActionSheet);
//空状态
app.use(Empty);
//地址列表
app.use(AddressList);
//导航栏
app.use(NavBar);
//选择器
app.use(Picker);
//密码框
app.use(PasswordInput);
app.use(NumberKeyboard)
//图标
app.use(Icon);
//倒计时
app.use(CountDown);





app.use(router)
app.use(pinia)
app.mount('#app')
